package nx.simple3d.data;

public abstract class TriangleHandler extends VectorHandler{
  protected TriangleBase tb;
  protected int tbOffset;
  
  public TriangleHandler(){
    tb = TriangleBase.getInstance();
    tb.registerTriangleHandler(this);
  }
  
  public void setTriangleOffset(int tbOffset){
    this.tbOffset = tbOffset;
  }
  
  public int getTriangleOffset(){
    return tbOffset;
  }
  
  public abstract int getRequiredTriangleCacheSize();

  public abstract void initializeTriangleData();
}
